﻿using Hetang.Models.DataContext;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Hetang.Areas.User.Models.Classes
{
    public class dt_Department
    {
        public string Name { get; set; }
    }

    public class dt_Recruit
    {
        public int id { get; set; }
        public string name { get; set; }
        public bool urgent { get; set; }
    }

    public class dt_SmartCompany
    {
        public List<dt_Department> Department { get; set; }

        public string Address { get; set; }

        public string Contacts { get; set; }

        public string Email { get; set; }

        public string Fax { get; set; }

        public string Phone { get; set; }

        public string QQ { get; set; }

        public string Website { get; set; }
    }

    public class dt_Domicile_City
    {
        public int id { get; set; }
        public string name { get; set; }
        public List<dt_Domicile_Town> townList { get; set; }
    }

    public class dt_Domicile_Town
    {
        /// <summary>
        /// 城市ID
        /// </summary>
        public int cid { get; set; }
        public string name { get; set; }
    }

    public class dt_Resume_Domicile
    {
        public string city { get; set; }

        public string town { get; set; }
    }

    public class dt_Resume
    {
        public tbl_Resume resume { get; set; }

        [Required]
        [DisplayName("城市")]
        public string city { get; set; }

        [Required]
        [DisplayName("镇/县")]
        public string town { get; set; }

        [DisplayName("年份")]
        public int? BornYear { get; set; }

        [DisplayName("月份")]
        public int? BornMonth { get; set; }

        [DisplayName("日")]
        public int? BornDay { get; set; }
    }

    /// <summary>
    /// 重置密码
    /// </summary>
    public class ResetPassword
    {
        [Required]
        [DisplayName("新密码")]
        [StringLength(16, MinimumLength = 6, ErrorMessage = "密码长度6-16位！")]
        public string Password { get; set; }

        [Required]
        [DisplayName("确认新密码")]
        [Compare("Password", ErrorMessage = "两次输入的密码不一致！")]
        public string ConfigPassword { get; set; }

        public string Code { get; set; }
    }
}